let editFormRules = {
    username: [
        { required: true, message: "请输入用户名", trigger: "blur" },
        {
            min: 2,
            max: 10,
            messasge: "用户名长度在3~10个字符之间",
            trigger: "blur",
        },
    ],
    id: [
        { required: true, message: "请输入图片地址", trigger: "blur" },
    ],

    avatarUrl: [
        { required: true, message: "请输入图片地址", trigger: "blur" },
    ],
    name: [
        { required: true, message: "请输入名字", trigger: "blur" },
    ],
    phone_number: [
        { required: true, message: "请输入电话", trigger: "blur" },
    ],
}

let editpwdFormRules = {
    oldPassword: [
        { required: true, message: "请输入旧密码", trigger: "blur" },
        {
            min: 6,
            max: 15,
            messasge: "密码长度在6~15个字符之间,且必须使用数字和字母",
            trigger: "blur",
        },
    ],
    id: [
        { required: true, message: "请输入图片地址", trigger: "blur" },
    ],
    newPassword: [
        { required: true, message: "请输入新密码", trigger: "blur" },
        {
            min: 6,
            max: 15,
            messasge: "密码长度在6~15个字符之间,且必须使用数字和字母",
            trigger: "blur",
        },
    ],
}

module.exports = {
    editFormRules,
    editpwdFormRules
}